package xyz.bali16.module.article.service;

import com.gitee.starblues.annotation.Caller;
import xyz.bali16.module.article.entity.Article;

import java.util.List;

/**
 * @author bali2 on 20/4/2023.
 * @version 1.0
 */
@Caller("articleRank")
public interface ArticleRankServiceCaller {
    @Caller.Method("initWeekRank")
    void initWeekRank(String type,String articleId, String articleTitle, Integer articleCommentCount, Integer articleViews, String gmtCreated,Integer likeCount,Integer collectionCount);
    @Caller.Method("incrTypeCountAndUnionForWeekRank")
    void incrTypeCountAndUnionForWeekRank(String type,String articleId,String articleTitle,Integer articleCommentCount,Integer articleViews,String gmtCreated,Integer likeCount, Integer collectionCount,  boolean isIncr);
    @Caller.Method("updateTypeCount")
    void updateTypeCount(String type,String articleId,Integer articleViews);
    @Caller.Method("zunionAndStoreLast7DayForWeekRank")
    void zunionAndStoreLast7DayForWeekRank(String type);

}
